package org.jeecg.modules.demo.hd.service;

import org.jeecg.modules.demo.hd.entity.AppUserShareDetail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: app_user_share_detail
 * @Author: jeecg-boot
 * @Date: 2025-04-30
 * @Version: V1.0
 */
public interface IAppUserShareDetailService extends IService<AppUserShareDetail> {


    /**
     * 获取上级的用户ID
     *
     * @param userId
     * @return
     */
    String findParentUser(String userId);


    /**
     * 判断是否重复发放邀请奖励
     *
     * @param parentId 邀请人ID
     * @param userId   被邀请人ID
     * @return
     */
    boolean exitParentUserInvitationRewards(String parentId, String userId);


    /**
     * 查看当前用户当天是否已经兑换过
     *
     * @return
     */
    boolean exitCurrentDayUserDuiHuan();

    /**
     * 查看用户当前是否已经兑换过
     *
     * @param userId
     * @return
     */
    boolean exitCurrentDayUserDuiHuan(String userId);
}
